export const localData = {
  set(key, value) {
    wx.setStorageSync(key, value)
  },
  get(key) {
    return wx.getStorageSync(key)
  },
  clear(key) {
    if (key) wx.setStorageSync(key, {})
    else wx.clearStorageSync()
  }
}